.tooltip {
    position: relative;
    max-width: fit-content;

}

.tooltiptext {
    position: absolute;
    transform: translate(-25%, 15px);
    border: 2px solid white;
    min-width: 250px;
    max-width: 250px;
    pointer-events: none;
    text-shadow: none;
}

.tooltip .tooltiptext {
    opacity: 0;
    visibility: hidden;
    background-color: rgb(0, 0, 0);
    color: rgb(255, 255, 255);
    text-align: center;
    border-radius: 6px;
    padding: 7px 5px;
    z-index: 1;
    bottom: 150%;
    left: 50%;
    margin-left: -60px;
    font-size: 15px;
    transition-duration: 0.3s;
}

.tooltip .tooltiptext::after {
    content: "";
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 10px;
    border-style: solid;
    border-color: rgb(255, 255, 255) transparent transparent transparent ;
}

.tooltiptext::after {
    position: absolute;
}
  
.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}